<template>
    <div style="background:#Fff;">
        <h1>Modal组件</h1>
        <button>
            <el-icon name="close" @click="handleClose"></el-icon>
        </button>
    </div>
</template>

<script>
export default {
    methods:{
        handleClose(){
            this.$emit('close')
        }
    }
}
</script>